/***
SampleTest
创建人：ZЁЯ¤　身高：168cm+；体重：57kg+；未婚（已有女友）；最爱的运动：睡觉；格言：路见不平，拔腿就跑。QQ：358315553。
创建时间：2012年12月14日 14:59:17
简要说明：这家伙很懒什么都没写。
用法举例：这家伙还是很懒什么都没写。
*/

package zero.shaders.test{
	import flash.display.*;
	import flash.geom.*;
	import flash.utils.*;
	import zero.shaders.*;
	
	/**
	 * 
	 * 取样测试
	 * 
	 */	
	public class SampleTest extends BaseShader{
		
		public static const nameV:Vector.<String>=new <String>["sampleX","sampleY"];
		//SampleTestCode//为了编译进来
		public static const byteV:Vector.<int>=new <int>[0xa5,0x01,0x00,0x00,0x00,0xa4,0x0a,0x00,0x53,0x61,0x6d,0x70,0x6c,0x65,0x54,0x65,0x73,0x74,0xa0,0x0c,0x6e,0x61,0x6d,0x65,0x73,0x70,0x61,0x63,0x65,0x00,0x7a,0x65,0x72,0x6f,0x2e,0x73,0x68,0x61,0x64,0x65,0x72,0x73,0x2e,0x74,0x65,0x73,0x74,0x00,0xa0,0x0c,0x76,0x65,0x6e,0x64,0x6f,0x72,0x00,0x5a,0xa7,0xa7,0xa7,0xc1,0xa1,0xe8,0x00,0xa0,0x08,0x76,0x65,0x72,0x73,0x69,0x6f,0x6e,0x00,0x02,0x00,0xa0,0x0c,0x64,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x00,0xc8,0xa1,0xd1,0xf9,0xb2,0xe2,0xca,0xd4,0x00,0xa1,0x01,0x01,0x00,0x00,0x08,0x73,0x61,0x6d,0x70,0x6c,0x65,0x58,0x00,0xa1,0x01,0x01,0x00,0x00,0x04,0x73,0x61,0x6d,0x70,0x6c,0x65,0x59,0x00,0xa3,0x00,0x04,0x73,0x72,0x63,0x00,0xa1,0x02,0x04,0x01,0x00,0x0f,0x64,0x73,0x74,0x00,0x1d,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x1d,0x00,0x00,0x10,0x00,0x00,0x40,0x00,0x30,0x02,0x00,0xf1,0x00,0x00,0xb0,0x00,0x1d,0x01,0x00,0xf3,0x02,0x00,0x1b,0x00];
		
		/**
		 * 
		 * 取样点X （-1~160） 默认 12
		 * 
		 */
		public var sampleX:int;
		
		/**
		 * 
		 * 取样点Y （-1~120） 默认 34
		 * 
		 */
		public var sampleY:int;
		

		/**
		 * 
		 * 取样点X （-1~160） 默认 12<br/>
		 * 取样点Y （-1~120） 默认 34<br/>
		 * 
		 */
		public function SampleTest(_sampleX:int=12,_sampleY:int=34){
			sampleX=_sampleX;
			(data.sampleX as ShaderParameter).value=[];
			sampleY=_sampleY;
			(data.sampleY as ShaderParameter).value=[];
		}
		
		override public function updateParams():void{
			(data.sampleX as ShaderParameter).value[0]=sampleX;
			(data.sampleY as ShaderParameter).value[0]=sampleY;
		}
		

	}
}